package com.sciology.xpathutility.view;

import org.eclipse.jface.text.IDocument;
import org.eclipse.jface.text.formatter.IFormattingStrategy;

public class XmlDocumentFormattingStrategy implements IFormattingStrategy {
	 
	private IDocument document;

	public XmlDocumentFormattingStrategy(IDocument document) {
		this.document = document;
	}

	public String format(String content, boolean isLineStart,
		String indentation, int[] positions) {
		XmlDocumentFormatter formatter = new XmlDocumentFormatter();
		if (content == null){
			content ="";
		}
		String string = formatter.format(content);
		return string;
	}

	public void formatterStarts(String initialIndentation) {
		// TODO Auto-generated method stub
	}

	public void formatterStops() {
		// TODO Auto-generated method stub
	}

}
